<template>
    <el-container>
        <el-header>
            <el-menu mode="horizontal" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b" v-bind:router="true">
                <el-menu-item index="/index/customer">订单客户管理</el-menu-item>
                <el-submenu index="2">
                    <template slot="title">航空机票管理</template>
                    <el-menu-item index="/index/ticketValid">订票审核</el-menu-item>
                    <el-menu-item index="/index/refund">退票审核</el-menu-item>
                </el-submenu>
                <el-submenu index="3">
                    <template slot="title">航班信息管理</template>
                    <el-menu-item index="/index/searchAir">查询航班信息</el-menu-item>
                    <el-menu-item index="/index/addAir">增加航班信息</el-menu-item>
                </el-submenu>
                <el-submenu index="4">
                    <template slot="title">人员用户管理</template>
                    <el-menu-item index="/index/userAdmin">用户管理</el-menu-item>
                    <el-menu-item index="/index/addUser">新增管理</el-menu-item>
                </el-submenu>
                <el-submenu index="5">
                    <template slot="title">机型管理</template>
                    <el-menu-item index="/index/airList">机型维护</el-menu-item>
                    <el-menu-item index="/index/addType">新增机型</el-menu-item>
                </el-submenu>
            </el-menu>
        </el-header>
        <el-main>
            <transition enter-active-class="animated bounceInUp"
                        leave-active-class="animated zoomOut">
                <router-view/>
            </transition>
        </el-main>
    </el-container>
</template>

<script>
    export default {
        name: "Index.vue",
        created() {
            // debugger
            // //当页面中数据加载完毕后created方法
            // //拿到manager对象，局部代码块中声明js变量最好用let
            // let manager = this.$store.getters.getManager;
            // if (!manager.manAccount) {
            //     this.$message({
            //         type: "error",
            //         showClose: false,
            //         message: "权限不足，请重新登录",
            //         onClose: () => {
            //             this.$router.push({path: "/"});
            //         }
            //
            //     })
            // }

        }
    }
</script>

<style scoped>

</style>